import request from '@/utils/request'

// 查询理货作业列表
export function listTally(query) {
  return request({
    url: '/goods/good/list',
    method: 'get',
    params: query
  })
}

// 查询理货作业详细
export function getTally(goodsId) {
  return request({
    url: '/goods/good/' + goodsId,
    method: 'get'
  })
}

// 新增理货作业
export function addTally(data) {
  return request({
    url: '/goods/good',
    method: 'post',
    data: data
  })
}

// 修改理货作业
export function updateTally(data) {
  return request({
    url: '/goods/good',
    method: 'put',
    data: data
  })
}

// 删除理货作业
export function delTally(goodsId) {
  return request({
    url: '/goods/good/' + goodsId,
    method: 'delete'
  })
}

// 修改理货作业
export function updateTallyExt(goodsId, data) {
  return request({
    url: '/goods/good/tally/' + goodsId,
    method: 'put',
    data: data
  })
}

